gtkgesture: Add docs blurb about touchpad gestures
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Jul 2015 16:52:38 +0000 (18:52 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 12 Aug 2015 21:20:25 +0000 (23:20 +0200)
Not too long though, the precautions to take are minimal.

gtk/gtkgesture.c

index 58a4a521e05f18383f4a56ef921c31f6c9e8f910..5fc909ee6a4a06acde2562efa83a48d50b33ae07 100644 (file)
  *
  * Sequence states can't be changed freely, see gtk_gesture_set_sequence_state()
  * to know about the possible lifetimes of a #GdkEventSequence.
+ *
+ * ## Touchpad gestures
+ *
+ * On the platforms that support it, #GtkGesture will handle transparently
+ * touchpad gesture events. The only precautions users of #GtkGesture should do
+ * to enable this support are:
+ * - Enabling %GDK_TOUCHPAD_GESTURE_MASK on their #GdkWindows
+ * - If the gesture has %GTK_PHASE_NONE, ensuring events of type
+ *   %GDK_TOUCHPAD_SWIPE and %GDK_TOUCHPAD_PINCH are handled by the #GtkGesture
  */
 
 #include "config.h"